; Music of Agent XII (1987) (Mastertronic) (Timothy Follin)
; Ripped by Megachur the 04/11/2006

	write "AGENTXII.BIN"

music_date_rip	equ &04c6
music_adr	equ &6745
first_theme	equ 0
last_theme	equ 0

	read "music_header_v1_0.asm"

;
.stop_music
;
	ld a,#07
	ld c,#3f
	call l6ac0
	ld a,#0d
	ld c,#01
	jp l6ac0
;
.init_music	
.l6753
;
	ld hl,l6af4
	ld (l677b),hl
	ld hl,l7124
	ld (l684a),hl
	ld hl,l7684
	ld (l6907),hl
	ld a,#01
	ld (l6772),a
	ld (l6841),a
	ld (l68fe),a
	ret
;
.play_music	
.l6771
;
.l6772 equ $ + 1
	ld a,#00
	dec a
	ld (l6772),a
	jp nz,l6840
.l677b equ $ + 1
	ld hl,#0000
.l677d
	ld a,(hl)
	inc hl
	cp #ff
	jp z,l6753
	ld a,(hl)
	dec hl
	cp #ff
	ld a,(hl)
	jp nz,l680c
	inc hl
	inc hl
	cp #01
	jp nz,l67a2
.l6794 equ $ + 1
	ld a,#00
	dec a
	jp z,l677d
	ld (l6794),a
	ld hl,(l6aeb)
	jp l677d
.l67a2
	cp #02
	jr nz,l67b1
	ld a,(hl)
	inc hl
	ld (l6794),a
	ld (l6aeb),hl
	jp l677d
.l67b1
	cp #03
	jr nz,l67e6
	ld a,#08
	ld c,(hl)
	call l6ac0
	ld a,(hl)
	ld (l69a6),a
	ld (l6ae8),a
	ld (l6af1),a
	inc hl
	ld a,(hl)
	ld (l69ad),a
	ld (l69b5),a
	inc hl
	ld a,(hl)
	ld (l69cd),a
	ld (l69d5),a
	ld (l69da),a
	inc hl
	ld a,(hl)
	ld (l69ea),a
	inc hl
	ld a,(hl)
	ld (l69f2),a
	inc hl
	jp l677d
.l67e6
	cp #04
	jr nz,l67f1
	xor a
	ld (l6828),a
	jp l677d
.l67f1
	cp #05
	jr nz,l67fd
	ld a,#01
	ld (l6828),a
	jp l677d
.l67fd
	cp #06
	jr nz,l680d
	ld a,(hl)
	ld (l6a9c),a
	ld (l683c),a
	inc hl
	jp l677d
.l680c
	inc hl
.l680d
	ld d,a
	ld e,(hl)
	inc hl
	ld a,(hl)
	ld (l6772),a
	inc hl
	ld (l677b),hl
	ld a,d
	ld (l6ab8),a
	ld c,a
	xor a
	call l6ac0
	ld a,#01
	ld c,e
	call l6ac0
.l6828 equ $ + 1
	ld a,#00
	dec a
	jr nz,l6840
	ld a,(l6af1)
	ld (l6ae8),a
	ld (l69a6),a
	ld a,(l69d5)
	ld (l69da),a
.l683c equ $ + 1
	ld a,#00
	ld (l6a9c),a
.l6841 equ $ + 1
.l6840
	ld a,#00
	dec a
	ld (l6841),a
	jp nz,l68fd
.l684a equ $ + 1
	ld hl,#0000
.l684c
	ld a,(hl)
	inc hl
	cp #ff
	jp z,l6753
	ld a,(hl)
	dec hl
	cp #ff
	ld a,(hl)
	jp nz,l68d7
	inc hl
	inc hl
	cp #01
	jr nz,l686f
.l6862 equ $ + 1
	ld a,#00
	dec a
	jr z,l684c
	ld (l6862),a
	ld hl,(l6aed)
	jp l684c
.l686f
	cp #02
	jr nz,l687e
	ld a,(hl)
	inc hl
	ld (l6862),a
	ld (l6aed),hl
	jp l684c
.l687e
	cp #03
	jr nz,l68ab
	ld a,#09
	ld c,(hl)
	call l6ac0
	ld a,(hl)
	ld (l6a0b),a
	ld (l6ae9),a
	ld (l6af2),a
	inc hl
	ld a,(hl)
	ld (l6a12),a
	ld (l6a1b),a
	inc hl
	ld a,(hl)
	ld (l6a33),a
	ld (l6a3c),a
	inc hl
	ld a,(hl)
	ld (l6a4c),a
	inc hl
	jp l684c
.l68ab
	cp #04
	jr nz,l68b6
	xor a
	ld (l68f0),a
	jp l684c
.l68b6
	cp #05
	jr nz,l68c2
	ld a,#01
	ld (l68f0),a
	jp l684c
.l68c2
	cp #07
	jr nz,l68d8
	ld a,#07
	ld c,(hl)
	inc hl
	call l6ac0
	ld a,#06
	ld c,(hl)
	inc hl
	call l6ac0
	jp l684c
.l68d7
	inc hl
.l68d8
	ld d,a
	ld e,(hl)
	inc hl
	ld a,(hl)
	ld (l6841),a
	inc hl
	ld (l684a),hl
	ld a,#02
	ld c,d
	call l6ac0
	ld a,#03
	ld c,e
	call l6ac0
.l68f0 equ $ + 1
	ld a,#00
	dec a
	jr nz,l68fd
	ld a,(l6af2)
	ld (l6ae9),a
	ld (l6a0b),a
.l68fe equ $ + 1
.l68fd
	ld a,#00
	dec a
	ld (l68fe),a
	jp nz,l69a5
.l6907 equ $ + 1
	ld hl,#0000
.l6909
	ld a,(hl)
	inc hl
	cp #ff
	jp z,l6753
	ld a,(hl)
	dec hl
	cp #ff
	ld a,(hl)
	jp nz,l697f
	inc hl
	inc hl
	cp #01
	jr nz,l692c
.l691f equ $ + 1
	ld a,#00
	dec a
	jr z,l6909
	ld (l691f),a
	ld hl,(l6aef)
	jp l6909
.l692c
	cp #02
	jr nz,l693b
	ld a,(hl)
	inc hl
	ld (l691f),a
	ld (l6aef),hl
	jp l6909
.l693b
	cp #03
	jr nz,l6968
	ld a,#0a
	ld c,(hl)
	call l6ac0
	ld a,(hl)
	ld (l6a53),a
	ld (l6aea),a
	ld (l6af3),a
	inc hl
	ld a,(hl)
	ld (l6a5a),a
	ld (l6a63),a
	inc hl
	ld a,(hl)
	ld (l6a7c),a
	ld (l6a85),a
	inc hl
	ld a,(hl)
	ld (l6a95),a
	inc hl
	jp l6909
.l6968
	cp #04
	jr nz,l6973
	xor a
	ld (l6998),a
	jp l6909
.l6973
	cp #05
	jr nz,l6980
	ld a,#01
	ld (l6998),a
	jp l6909
.l697f
	inc hl
.l6980
	ld d,a
	ld e,(hl)
	inc hl
	ld a,(hl)
	ld (l68fe),a
	inc hl
	ld (l6907),hl
	ld a,#04
	ld c,d
	call l6ac0
	ld a,#05
	ld c,e
	call l6ac0
.l6998 equ $ + 1
	ld a,#00
	dec a
	jr nz,l69a5
	ld a,(l6af3)
	ld (l6aea),a
	ld (l6a53),a
.l69a6 equ $ + 1
.l69a5
	ld a,#00
	cp #0d
	jp z,l69cc
.l69ad equ $ + 1
	ld a,#00
	dec a
	ld (l69ad),a
	jr nz,l69f1
.l69b5 equ $ + 1
	ld a,#00
	ld (l69ad),a
	ld a,(l6ae8)
	inc a
	ld (l6ae8),a
	ld (l69a6),a
	ld c,a
	ld a,#08
	call l6ac0
	jp l69f1
.l69cd equ $ + 1
.l69cc
	ld a,#00
	dec a
	ld (l69cd),a
	jr nz,l69f1
.l69d5 equ $ + 1
	ld a,#00
	ld (l69cd),a
.l69da equ $ + 1
	ld a,#00
	ld (l69cd),a
	ld a,(l6ae8)
	dec a
	ld c,a
	ld a,#08
	call l6ac0
	ld a,c
.l69ea equ $ + 1
	cp #00
	jp z,l69f1
	ld (l6ae8),a
.l69f2 equ $ + 1
.l69f1
	ld a,#00
	and a
	jr z,l6a0a
	ld b,a
	ld a,(l6772)
	cp b
	jr nz,l6a0a
	ld a,#0d
	ld (l69a6),a
	ld a,#01
	ld (l69cd),a
	ld (l69da),a
.l6a0b equ $ + 1
.l6a0a
	ld a,#00
	cp #0d
	jp z,l6a32
.l6a12 equ $ + 1
	ld a,#00
	dec a
	ld (l6a12),a
	jp nz,l6a52
.l6a1b equ $ + 1
	ld a,#00
	ld (l6a12),a
	ld a,(l6ae9)
	inc a
	ld (l6ae9),a
	ld (l6a0b),a
	ld c,a
	ld a,#09
	call l6ac0
	jp l6a52
.l6a33 equ $ + 1
.l6a32
	ld a,#00
	dec a
	ld (l6a33),a
	jp nz,l6a52
.l6a3c equ $ + 1
	ld a,#00
	ld (l6a33),a
	ld a,(l6ae9)
	dec a
	ld c,a
	ld a,#09
	call l6ac0
	ld a,c
.l6a4c equ $ + 1
	cp #00
	jr z,l6a52
	ld (l6ae9),a
.l6a53 equ $ + 1
.l6a52
	ld a,#00
	cp #0d
	jp z,l6a7b
.l6a5a equ $ + 1
	ld a,#00
	dec a
	ld (l6a5a),a
	jp nz,l6a9b
.l6a63 equ $ + 1
	ld a,#00
	ld (l6a5a),a
	ld a,(l6aea)
	inc a
	ld c,a
	ld a,#0a
	call l6ac0
	ld a,c
	ld (l6aea),a
	ld (l6a53),a
	jp l6a9b
.l6a7c equ $ + 1
.l6a7b
	ld a,#00
	dec a
	ld (l6a7c),a
	jp nz,l6a9b
.l6a85 equ $ + 1
	ld a,#00
	ld (l6a7c),a
	ld a,(l6aea)
	dec a
	ld c,a
	ld a,#0a
	call l6ac0
	ld a,c
.l6a95 equ $ + 1
	cp #00
	jr z,l6a9b
	ld (l6aea),a
.l6a9c equ $ + 1
.l6a9b
	ld a,#00
	dec a
	ld (l6a9c),a
	jr nz,l6abf
	inc a
	ld (l6a9c),a
	ld hl,l6ae0
.l6aab equ $ + 1
	ld a,#00
	inc a
	and #07
	ld (l6aab),a
	ld e,a
	ld d,#00
	add hl,de
	ld a,(hl)
.l6ab8 equ $ + 1
	add #00
	ld d,a
	xor a
	ld c,d
	call l6ac0
.l6abf
	ret
.l6ac0
	push bc
	ld b,#f4
	out (c),a
	ld b,#f6
	in a,(c)
	or #c0
	out (c),a
	and #3f
	out (c),a
	ld b,#f4
	out (c),c
	ld b,#f6
	ld c,a
	or #80
	out (c),a
	out (c),c
	pop bc
	ret
.l6ae0
	db #02,#01,#ff,#fe,#fe,#ff,#01,#02
.l6aef equ $ + 7
.l6aed equ $ + 5
.l6aeb equ $ + 3
.l6aea equ $ + 2
.l6ae9 equ $ + 1
.l6ae8
	db #00,#00,#00,#00,#00,#00,#00,#00
.l6af3 equ $ + 3
.l6af2 equ $ + 2
.l6af1 equ $ + 1
	db #00,#00,#00,#00
.l6af4
	db #06,#ff,#00,#05,#ff,#03,#ff,#0d
	db #00,#00,#00,#00,#02,#ff,#03,#32
	db #00,#06,#2c,#00,#06,#32,#00,#06
	db #2c,#00,#06,#32,#00,#06,#2c,#00
	db #06,#32,#00,#06,#2c,#00,#06,#35
	db #00,#06,#2c,#00,#06,#35,#00,#06
	db #2c,#00,#06,#35,#00,#06,#2c,#00
	db #06,#35,#00,#06,#2c,#00,#06,#38
	db #00,#06,#2c,#00,#06,#38,#00,#06
	db #2c,#00,#06,#38,#00,#06,#2c,#00
	db #06,#38,#00,#06,#2c,#00,#06,#3b
	db #00,#06,#2c,#00,#06,#3b,#00,#06
	db #2c,#00,#06,#3b,#00,#06,#2c,#00
	db #06,#3b,#00,#06,#2c,#00,#06,#01
	db #ff,#2c,#00,#06,#59,#00,#06,#32
	db #00,#06,#63,#00,#06,#2c,#00,#06
	db #59,#00,#06,#27,#00,#06,#4f,#00
	db #06,#26,#00,#06,#4a,#00,#06,#27
	db #00,#06,#4f,#00,#06,#26,#00,#06
	db #4a,#00,#06,#21,#00,#06,#42,#00
	db #06,#1d,#00,#06,#3b,#00,#06,#21
	db #00,#06,#42,#00,#06,#1d,#00,#06
	db #3b,#00,#06,#1c,#00,#06,#38,#00
	db #06,#02,#ff,#20,#3b,#00,#03,#38
	db #00,#03,#01,#ff,#05,#ff,#03,#ff
	db #07,#01,#00,#01,#06,#06,#ff,#18
	db #77,#00,#18,#3b,#00,#54,#42,#00
	db #18,#4f,#00,#12,#59,#00,#12,#5e
	db #00,#42,#59,#00,#12,#63,#00,#30
	db #70,#00,#24,#03,#ff,#0d,#01,#04
	db #0a,#03,#3b,#00,#06,#42,#00,#06
	db #47,#00,#0c,#47,#00,#06,#42,#00
	db #06,#3b,#00,#0c,#2f,#00,#04,#35
	db #00,#04,#2f,#00,#04,#2c,#00,#04
	db #27,#00,#04,#23,#00,#04,#21,#00
	db #04,#1d,#00,#04,#1c,#00,#04,#1d
	db #00,#54,#1d,#00,#06,#21,#00,#06
	db #23,#00,#06,#27,#00,#06,#2c,#00
	db #06,#2f,#00,#06,#35,#00,#06,#3b
	db #00,#06,#42,#00,#06,#47,#00,#06
	db #4f,#00,#06,#59,#00,#06,#5e,#00
	db #06,#6a,#00,#06,#03,#ff,#09,#01
	db #00,#01,#03,#85,#00,#01,#04,#ff
	db #84,#00,#01,#83,#00,#01,#81,#00
	db #01,#80,#00,#01,#7f,#00,#01,#7e
	db #00,#01,#7c,#00,#01,#7b,#00,#01
	db #7a,#00,#01,#79,#00,#01,#77,#00
	db #01,#77,#00,#24,#05,#ff,#77,#00
	db #01,#04,#ff,#76,#00,#01,#74,#00
	db #01,#73,#00,#01,#72,#00,#01,#71
	db #00,#01,#70,#00,#1e,#06,#ff,#00
	db #03,#ff,#07,#02,#01,#07,#00,#05
	db #ff,#77,#00,#18,#5e,#00,#18,#4f
	db #00,#12,#3b,#00,#12,#32,#00,#18
	db #38,#00,#18,#3b,#00,#12,#38,#00
	db #12,#03,#ff,#0a,#00,#00,#00,#00
	db #02,#ff,#0e,#3b,#00,#03,#35,#00
	db #03,#01,#ff,#03,#ff,#04,#02,#0a
	db #00,#00,#02,#ff,#15,#3b,#00,#01
	db #04,#ff,#4a,#00,#01,#59,#00,#01
	db #70,#00,#01,#01,#ff,#03,#ff,#0c
	db #01,#03,#0a,#00,#05,#ff,#3b,#00
	db #06,#42,#00,#06,#3b,#00,#0c,#42
	db #00,#06,#47,#00,#06,#42,#00,#0c
	db #47,#00,#06,#4f,#00,#06,#47,#00
	db #06,#42,#00,#06,#47,#00,#06,#42
	db #00,#06,#06,#ff,#12,#03,#ff,#08
	db #01,#00,#01,#05,#3f,#00,#01,#04
	db #ff,#3f,#00,#01,#3e,#00,#01,#3d
	db #00,#01,#3d,#00,#01,#3c,#00,#01
	db #3b,#00,#12,#05,#ff,#38,#00,#18
	db #32,#00,#12,#2c,#00,#12,#03,#ff
	db #0c,#01,#02,#09,#00,#02,#ff,#02
	db #27,#00,#06,#2f,#00,#06,#3b,#00
	db #06,#4f,#00,#06,#01,#ff,#02,#ff
	db #02,#27,#00,#06,#2f,#00,#06,#3b
	db #00,#06,#01,#ff,#02,#ff,#02,#26
	db #00,#06,#2c,#00,#06,#38,#00,#06
	db #4a,#00,#06,#01,#ff,#02,#ff,#02
	db #21,#00,#06,#27,#00,#06,#32,#00
	db #06,#01,#ff,#06,#ff,#18,#1d,#00
	db #60,#1c,#00,#30,#19,#00,#30,#05
	db #ff,#06,#ff,#18,#03,#ff,#0c,#01
	db #01,#0a,#06,#4f,#00,#06,#59,#00
	db #06,#5e,#00,#18,#5e,#00,#06,#59
	db #00,#06,#4f,#00,#18,#3b,#00,#0c
	db #35,#00,#0c,#32,#00,#06,#35,#00
	db #06,#3b,#00,#06,#42,#00,#06,#4a
	db #00,#06,#4f,#00,#06,#59,#00,#06
	db #4a,#00,#06,#4f,#00,#30,#06,#ff
	db #01,#5e,#00,#18,#59,#00,#18,#4f
	db #00,#18,#47,#00,#18,#4a,#00,#18
	db #42,#00,#18,#3b,#00,#18,#38,#00
	db #18,#03,#ff,#0c,#01,#06,#00,#00
	db #3b,#00,#60,#03,#ff,#00,#06,#00
	db #00,#00,#06,#ff,#00,#05,#ff,#02
	db #ff,#08,#ed,#00,#03,#04,#ff,#b2
	db #00,#03,#8d,#00,#03,#77,#00,#03
	db #01,#ff,#05,#ff,#03,#ff,#0a,#00
	db #00,#00,#00,#02,#ff,#06,#ed,#00
	db #04,#b2,#00,#04,#8d,#00,#04,#77
	db #00,#04,#01,#ff,#02,#ff,#06,#d3
	db #00,#04,#b2,#00,#04,#8d,#00,#04
	db #6a,#00,#04,#01,#ff,#02,#ff,#06
	db #c7,#00,#04,#9e,#00,#04,#85,#00
	db #04,#63,#00,#04,#01,#ff,#02,#ff
	db #06,#c7,#00,#04,#9e,#00,#04,#85
	db #00,#04,#6a,#00,#04,#01,#ff,#02
	db #ff,#08,#ed,#00,#03,#b2,#00,#03
	db #8d,#00,#03,#77,#00,#03,#01,#ff
	db #02,#ff,#08,#d3,#00,#03,#b2,#00
	db #03,#8d,#00,#03,#6a,#00,#03,#01
	db #ff,#02,#ff,#08,#c7,#00,#03,#9e
	db #00,#03,#85,#00,#03,#63,#00,#03
	db #01,#ff,#02,#ff,#04,#c7,#00,#03
	db #9e,#00,#03,#85,#00,#03,#6a,#00
	db #03,#01,#ff,#02,#ff,#06,#c7,#00
	db #02,#9e,#00,#02,#85,#00,#02,#6a
	db #00,#02,#01,#ff,#02,#ff,#06,#1a
	db #01,#04,#d3,#00,#04,#a8,#00,#04
	db #8d,#00,#04,#01,#ff,#02,#ff,#06
	db #fb,#00,#04,#d3,#00,#04,#a8,#00
	db #04,#7e,#00,#04,#01,#ff,#02,#ff
	db #06,#ed,#00,#04,#bc,#00,#04,#9e
	db #00,#04,#77,#00,#04,#01,#ff,#02
	db #ff,#06,#ed,#00,#04,#bc,#00,#04
	db #9e,#00,#04,#7e,#00,#04,#01,#ff
	db #02,#ff,#06,#1a,#01,#04,#d3,#00
	db #04,#a8,#00,#04,#8d,#00,#04,#01
	db #ff,#02,#ff,#06,#fb,#00,#04,#d3
	db #00,#04,#a8,#00,#04,#9e,#00,#04
	db #01,#ff,#02,#ff,#06,#ed,#00,#04
	db #bc,#00,#04,#b2,#00,#04,#9e,#00
	db #04,#01,#ff,#02,#ff,#06,#bc,#00
	db #04,#b2,#00,#04,#9e,#00,#04,#77
	db #00,#04,#01,#ff,#02,#ff,#06,#1a
	db #01,#04,#d3,#00,#04,#a8,#00,#04
	db #8d,#00,#04,#01,#ff,#02,#ff,#06
	db #fb,#00,#04,#d3,#00,#04,#9e,#00
	db #04,#7e,#00,#04,#01,#ff,#02,#ff
	db #06,#ed,#00,#04,#bc,#00,#04,#b2
	db #00,#04,#9e,#00,#04,#01,#ff,#02
	db #ff,#06,#fb,#00,#04,#d3,#00,#04
	db #9e,#00,#04,#7e,#00,#04,#01,#ff
	db #03,#ff,#0c,#01,#08,#00,#00,#02
	db #ff,#02,#4f,#00,#18,#4a,#00,#18
	db #42,#00,#18,#4a,#00,#10,#4f,#00
	db #08,#4a,#00,#10,#4f,#00,#08,#63
	db #00,#18,#63,#00,#30,#54,#00,#30
	db #59,#00,#30,#63,#00,#60,#06,#ff
	db #18,#03,#ff,#08,#01,#00,#01,#05
	db #01,#ff,#47,#00,#01,#04,#ff,#46
	db #00,#01,#46,#00,#01,#45,#00,#01
	db #45,#00,#01,#44,#00,#01,#44,#00
	db #01,#43,#00,#01,#42,#00,#28,#05
	db #ff,#4a,#00,#08,#47,#00,#08,#4a
	db #00,#08,#54,#00,#08,#63,#00,#08
	db #70,#00,#08,#63,#00,#08,#70,#00
	db #08,#77,#00,#08,#77,#00,#08,#85
	db #00,#08,#95,#00,#08,#05,#ff,#95
	db #00,#08,#85,#00,#08,#77,#00,#08
	db #85,#00,#08,#77,#00,#08,#70,#00
	db #08,#77,#00,#08,#70,#00,#08,#63
	db #00,#08,#59,#00,#08,#54,#00,#08
	db #4a,#00,#08,#42,#00,#30,#02,#ff
	db #18,#38,#00,#02,#42,#00,#02,#01
	db #ff,#38,#00,#01,#04,#ff,#37,#00
	db #01,#36,#00,#01,#36,#00,#01,#35
	db #00,#01,#35,#00,#01,#34,#00,#01
	db #33,#00,#01,#33,#00,#01,#32,#00
	db #27,#05,#ff,#2a,#00,#18,#32,#00
	db #10,#38,#00,#08,#32,#00,#10,#38
	db #00,#10,#3b,#00,#10,#3b,#00,#10
	db #38,#00,#10,#32,#00,#10,#38,#00
	db #10,#3b,#00,#10,#42,#00,#10,#42
	db #00,#10,#3b,#00,#10,#42,#00,#10
	db #4a,#00,#30,#32,#00,#30,#03,#ff
	db #00,#01,#00,#02,#0c,#21,#00,#c0
	db #42,#00,#60,#2c,#00,#60,#03,#ff
	db #08,#01,#00,#00,#00,#02,#ff,#02
	db #32,#00,#18,#2c,#00,#18,#35,#00
	db #0c,#3b,#00,#0c,#42,#00,#18,#38
	db #00,#18,#32,#00,#18,#3b,#00,#0c
	db #42,#00,#0c,#4a,#00,#18,#01,#ff
	db #03,#ff,#0d,#00,#00,#00,#00,#02
	db #ff,#05,#32,#00,#06,#2c,#00,#06
	db #32,#00,#06,#2c,#00,#06,#32,#00
	db #06,#2c,#00,#06,#32,#00,#06,#2c
	db #00,#06,#35,#00,#06,#2c,#00,#06
	db #35,#00,#06,#2c,#00,#06,#35,#00
	db #06,#2c,#00,#06,#35,#00,#06,#2c
	db #00,#06,#38,#00,#06,#2c,#00,#06
	db #38,#00,#06,#2c,#00,#06,#38,#00
	db #06,#2c,#00,#06,#38,#00,#06,#2c
	db #00,#06,#3b,#00,#06,#2c,#00,#06
	db #3b,#00,#06,#2c,#00,#06,#3b,#00
	db #06,#2c,#00,#06,#3b,#00,#06,#2c
	db #00,#06,#01,#ff,#ff,#ff,#ff,#ff
.l7124
	db #07,#ff,#38,#08,#05,#ff,#03,#ff
	db #00,#00,#00,#00,#1f,#00,#c0,#04
	db #ff,#03,#ff,#05,#19,#00,#0d,#02
	db #ff,#04,#8f,#01,#06,#63,#01,#06
	db #b2,#00,#06,#63,#01,#06,#2b,#01
	db #06,#8f,#01,#06,#a7,#01,#06,#da
	db #01,#06,#01,#ff,#05,#ff,#03,#ff
	db #0c,#01,#01,#00,#02,#ff,#04,#8f
	db #01,#06,#63,#01,#06,#b2,#00,#06
	db #63,#01,#06,#2b,#01,#06,#8f,#01
	db #06,#a7,#01,#06,#da,#01,#06,#01
	db #ff,#03,#ff,#0b,#00,#00,#00,#02
	db #ff,#04,#59,#00,#03,#4a,#00,#03
	db #3b,#00,#03,#4a,#00,#03,#01,#ff
	db #02,#ff,#04,#63,#00,#03,#4a,#00
	db #03,#3b,#00,#03,#4a,#00,#03,#01
	db #ff,#02,#ff,#04,#6a,#00,#03,#59
	db #00,#03,#42,#00,#03,#59,#00,#03
	db #01,#ff,#02,#ff,#08,#63,#00,#03
	db #59,#00,#03,#4a,#00,#03,#3b,#00
	db #03,#01,#ff,#3b,#00,#03,#38,#00
	db #03,#3b,#00,#03,#4a,#00,#03,#59
	db #00,#03,#63,#00,#03,#70,#00,#03
	db #77,#00,#03,#95,#00,#03,#b2,#00
	db #03,#c7,#00,#03,#b2,#00,#03,#95
	db #00,#03,#77,#00,#03,#70,#00,#03
	db #63,#00,#03,#59,#00,#03,#4a,#00
	db #03,#3b,#00,#03,#38,#00,#03,#3b
	db #00,#24,#05,#ff,#03,#ff,#0a,#00
	db #01,#00,#02,#ff,#08,#bc,#00,#06
	db #b2,#00,#06,#8d,#00,#06,#77,#00
	db #06,#bc,#00,#06,#b2,#00,#06,#8d
	db #00,#06,#77,#00,#06,#bc,#00,#06
	db #b2,#00,#06,#8d,#00,#06,#77,#00
	db #06,#8d,#00,#06,#b2,#00,#06,#e0
	db #00,#06,#c7,#00,#06,#b2,#00,#06
	db #95,#00,#06,#e0,#00,#06,#c7,#00
	db #06,#b2,#00,#06,#95,#00,#06,#c7
	db #00,#06,#b2,#00,#06,#9e,#00,#06
	db #85,#00,#06,#9e,#00,#06,#b2,#00
	db #06,#01,#ff,#02,#ff,#04,#bc,#00
	db #06,#b2,#00,#06,#8d,#00,#06,#77
	db #00,#06,#01,#ff,#02,#ff,#02,#b2
	db #00,#06,#95,#00,#06,#77,#00,#06
	db #59,#00,#06,#01,#ff,#02,#ff,#02
	db #e0,#00,#06,#b2,#00,#06,#9e,#00
	db #06,#85,#00,#06,#01,#ff,#07,#ff
	db #38,#00,#03,#ff,#0a,#00,#00,#00
	db #02,#ff,#08,#ed,#00,#03,#b2,#00
	db #03,#8d,#00,#03,#77,#00,#03,#01
	db #ff,#02,#ff,#04,#e0,#00,#03,#b2
	db #00,#03,#95,#00,#03,#77,#00,#03
	db #01,#ff,#02,#ff,#04,#e0,#00,#03
	db #b2,#00,#03,#9e,#00,#03,#85,#00
	db #03,#01,#ff,#02,#ff,#08,#ed,#00
	db #03,#b2,#00,#03,#8d,#00,#03,#77
	db #00,#03,#01,#ff,#02,#ff,#04,#e0
	db #00,#03,#b2,#00,#03,#95,#00,#03
	db #77,#00,#03,#01,#ff,#02,#ff,#04
	db #bc,#00,#03,#9e,#00,#03,#85,#00
	db #03,#70,#00,#03,#01,#ff,#04,#ff
	db #03,#ff,#0c,#01,#06,#00,#02,#ff
	db #08,#ed,#00,#03,#b2,#00,#03,#8d
	db #00,#03,#77,#00,#03,#01,#ff,#07
	db #ff,#28,#04,#03,#ff,#00,#06,#00
	db #00,#0a,#00,#60,#05,#ff,#03,#ff
	db #0c,#01,#01,#00,#02,#ff,#08,#07
	db #ff,#28,#0f,#ed,#00,#08,#07,#ff
	db #28,#04,#0a,#00,#08,#0a,#00,#08
	db #07,#ff,#28,#0f,#ed,#00,#08,#07
	db #ff,#28,#04,#0a,#00,#08,#07,#ff
	db #28,#0f,#ed,#00,#08,#ed,#00,#08
	db #07,#ff,#28,#04,#0a,#00,#08,#0a
	db #00,#08,#07,#ff,#28,#0f,#ed,#00
	db #08,#07,#ff,#28,#04,#0a,#00,#08
	db #0a,#00,#08,#01,#ff,#03,#ff,#0c
	db #01,#01,#00,#02,#ff,#08,#07,#ff
	db #28,#0f,#8d,#00,#08,#07,#ff,#28
	db #04,#0a,#00,#08,#0a,#00,#08,#07
	db #ff,#28,#0f,#8d,#00,#08,#07,#ff
	db #28,#04,#0a,#00,#08,#07,#ff,#28
	db #0f,#8d,#00,#08,#8d,#00,#08,#07
	db #ff,#28,#04,#0a,#00,#08,#0a,#00
	db #08,#07,#ff,#28,#0f,#8d,#00,#08
	db #07,#ff,#28,#04,#0a,#00,#08,#0a
	db #00,#08,#01,#ff,#03,#ff,#0c,#01
	db #08,#00,#02,#ff,#03,#08,#00,#60
	db #01,#ff,#08,#00,#30,#07,#ff,#1c
	db #01,#04,#ff,#08,#00,#30,#05,#ff
	db #03,#ff,#0a,#00,#00,#00,#02,#ff
	db #06,#0a,#01,#04,#c7,#00,#04,#9e
	db #00,#04,#85,#00,#04,#01,#ff,#02
	db #ff,#06,#ed,#00,#04,#c7,#00,#04
	db #95,#00,#04,#77,#00,#04,#01,#ff
	db #02,#ff,#06,#e0,#00,#04,#b2,#00
	db #04,#a8,#00,#04,#95,#00,#04,#01
	db #ff,#07,#ff,#38,#00,#02,#ff,#06
	db #ed,#00,#04,#c7,#00,#04,#95,#00
	db #04,#77,#00,#04,#01,#ff,#02,#ff
	db #06,#0a,#01,#04,#c7,#00,#04,#9e
	db #00,#04,#85,#00,#04,#01,#ff,#02
	db #ff,#06,#ed,#00,#04,#c7,#00,#04
	db #95,#00,#04,#77,#00,#04,#01,#ff
	db #02,#ff,#06,#e0,#00,#04,#b2,#00
	db #04,#a8,#00,#04,#95,#00,#04,#01
	db #ff,#02,#ff,#06,#ed,#00,#04,#c7
	db #00,#04,#95,#00,#04,#77,#00,#04
	db #01,#ff,#02,#ff,#06,#0a,#01,#04
	db #c7,#00,#04,#9e,#00,#04,#85,#00
	db #04,#01,#ff,#02,#ff,#06,#ed,#00
	db #04,#c7,#00,#04,#95,#00,#04,#77
	db #00,#04,#01,#ff,#02,#ff,#06,#e0
	db #00,#04,#b2,#00,#04,#a8,#00,#04
	db #95,#00,#04,#01,#ff,#02,#ff,#06
	db #ed,#00,#04,#c7,#00,#04,#95,#00
	db #04,#77,#00,#04,#01,#ff,#02,#ff
	db #06,#0a,#01,#04,#c7,#00,#04,#9e
	db #00,#04,#85,#00,#04,#01,#ff,#02
	db #ff,#06,#ed,#00,#04,#c7,#00,#04
	db #95,#00,#04,#77,#00,#04,#01,#ff
	db #02,#ff,#06,#e0,#00,#04,#b2,#00
	db #04,#a8,#00,#04,#95,#00,#04,#01
	db #ff,#02,#ff,#06,#ed,#00,#04,#c7
	db #00,#04,#95,#00,#04,#77,#00,#04
	db #01,#ff,#02,#ff,#06,#0a,#01,#04
	db #c7,#00,#04,#9e,#00,#04,#85,#00
	db #04,#01,#ff,#02,#ff,#06,#ed,#00
	db #04,#c7,#00,#04,#95,#00,#04,#77
	db #00,#04,#01,#ff,#02,#ff,#06,#e0
	db #00,#04,#b2,#00,#04,#a8,#00,#04
	db #95,#00,#04,#01,#ff,#02,#ff,#06
	db #ed,#00,#04,#c7,#00,#04,#95,#00
	db #04,#77,#00,#04,#01,#ff,#03,#ff
	db #0c,#00,#00,#00,#02,#ff,#02,#0a
	db #01,#04,#c7,#00,#04,#9e,#00,#04
	db #85,#00,#04,#0a,#01,#04,#c7,#00
	db #04,#9e,#00,#04,#85,#00,#04,#0a
	db #01,#04,#c7,#00,#04,#9e,#00,#04
	db #85,#00,#04,#d3,#00,#04,#c7,#00
	db #04,#9e,#00,#04,#85,#00,#04,#d3
	db #00,#04,#c7,#00,#04,#9e,#00,#04
	db #85,#00,#04,#d3,#00,#04,#c7,#00
	db #04,#9e,#00,#04,#85,#00,#04,#2b
	db #01,#04,#e0,#00,#04,#b2,#00,#04
	db #95,#00,#04,#2b,#01,#04,#e0,#00
	db #04,#b2,#00,#04,#95,#00,#04,#2b
	db #01,#04,#e0,#00,#04,#b2,#00,#04
	db #95,#00,#04,#ed,#00,#04,#e0,#00
	db #04,#b2,#00,#04,#95,#00,#04,#ed
	db #00,#04,#e0,#00,#04,#b2,#00,#04
	db #95,#00,#04,#ed,#00,#04,#e0,#00
	db #04,#b2,#00,#04,#95,#00,#04,#01
	db #ff,#04,#ff,#03,#ff,#0c,#01,#49
	db #00,#02,#ff,#ff,#0a,#01,#04,#c7
	db #00,#04,#b2,#00,#04,#9e,#00,#04
	db #0a,#01,#04,#c7,#00,#04,#b2,#00
	db #04,#9e,#00,#04,#0a,#01,#04,#c7
	db #00,#04,#b2,#00,#04,#9e,#00,#04
	db #d3,#00,#04,#b2,#00,#04,#9e,#00
	db #04,#85,#00,#04,#d3,#00,#04,#b2
	db #00,#04,#9e,#00,#04,#85,#00,#04
	db #d3,#00,#04,#b2,#00,#04,#9e,#00
	db #04,#85,#00,#04,#e0,#00,#04,#c7
	db #00,#04,#b2,#00,#04,#95,#00,#04
	db #e0,#00,#04,#c7,#00,#04,#b2,#00
	db #04,#95,#00,#04,#e0,#00,#04,#c7
	db #00,#04,#b2,#00,#04,#95,#00,#04
	db #ed,#00,#04,#e0,#00,#04,#b2,#00
	db #04,#95,#00,#04,#ed,#00,#04,#e0
	db #00,#04,#b2,#00,#04,#95,#00,#04
	db #ed,#00,#04,#e0,#00,#04,#b2,#00
	db #04,#95,#00,#04,#01,#ff,#ff,#ff
.l7684
	db #05,#ff,#03,#ff,#00,#00,#00,#00
	db #1f,#00,#c0,#04,#ff,#03,#ff,#05
	db #19,#00,#0d,#02,#ff,#04,#1e,#03
	db #06,#c6,#02,#06,#63,#01,#06,#c6
	db #02,#06,#56,#02,#06,#1e,#03,#06
	db #4c,#03,#06,#b4,#03,#06,#01,#ff
	db #05,#ff,#03,#ff,#0c,#01,#01,#00
	db #02,#ff,#04,#1e,#03,#06,#c6,#02
	db #06,#63,#01,#06,#c6,#02,#06,#56
	db #02,#06,#1e,#03,#06,#4c,#03,#06
	db #b4,#03,#06,#01,#ff,#05,#ff,#03
	db #ff,#0c,#01,#0f,#00,#c6,#02,#30
	db #1e,#03,#30,#4c,#03,#30,#7f,#03
	db #c0,#05,#ff,#03,#ff,#0c,#01,#08
	db #00,#02,#ff,#07,#c6,#02,#18,#63
	db #01,#18,#14,#02,#12,#da,#01,#12
	db #1e,#03,#18,#1e,#03,#18,#56,#02
	db #12,#14,#02,#12,#01,#ff,#c6,#02
	db #18,#63,#01,#18,#14,#02,#12,#da
	db #01,#12,#1e,#03,#18,#1e,#03,#18
	db #7f,#03,#12,#7f,#03,#12,#03,#ff
	db #0c,#01,#12,#00,#b4,#03,#60,#7f
	db #03,#30,#1e,#03,#30,#05,#ff,#03
	db #ff,#0c,#01,#19,#00,#c6,#02,#60
	db #1e,#03,#60,#c6,#02,#60,#1e,#03
	db #30,#f1,#02,#18,#79,#02,#18,#03
	db #ff,#0c,#01,#06,#00,#c6,#02,#60
	db #03,#ff,#00,#06,#00,#00,#c6,#02
	db #60,#03,#ff,#0c,#01,#03,#00,#02
	db #ff,#07,#c6,#02,#18,#c6,#02,#10
	db #63,#01,#08,#c6,#02,#18,#c6,#02
	db #08,#63,#01,#08,#c6,#02,#08,#01
	db #ff,#c6,#02,#18,#c6,#02,#10,#63
	db #01,#08,#c6,#02,#08,#63,#01,#08
	db #c6,#02,#08,#1e,#03,#08,#8f,#01
	db #08,#1e,#03,#08,#02,#ff,#08,#4c
	db #03,#18,#4c,#03,#10,#a7,#01,#08
	db #4c,#03,#18,#4c,#03,#08,#a7,#01
	db #08,#4c,#03,#08,#01,#ff,#02,#ff
	db #03,#9f,#02,#04,#04,#ff,#4f,#01
	db #04,#01,#ff,#05,#ff,#02,#ff,#03
	db #79,#02,#04,#04,#ff,#3c,#01,#04
	db #01,#ff,#05,#ff,#02,#ff,#03,#34
	db #02,#04,#04,#ff,#1a,#01,#04,#01
	db #ff,#05,#ff,#02,#ff,#02,#79,#02
	db #04,#04,#ff,#3c,#01,#04,#01,#ff
	db #05,#ff,#9f,#02,#04,#04,#ff,#4f
	db #01,#04,#05,#ff,#02,#ff,#02,#79
	db #02,#04,#04,#ff,#3c,#01,#04,#01
	db #ff,#05,#ff,#9f,#02,#04,#04,#ff
	db #4f,#01,#04,#05,#ff,#02,#ff,#03
	db #4c,#03,#04,#04,#ff,#a7,#01,#04
	db #01,#ff,#05,#ff,#02,#ff,#06,#4c
	db #03,#04,#04,#ff,#a7,#01,#04,#01
	db #ff,#05,#ff,#02,#ff,#06,#c6,#02
	db #04,#04,#ff,#63,#01,#04,#01,#ff
	db #05,#ff,#02,#ff,#06,#f1,#02,#04
	db #04,#ff,#78,#01,#04,#01,#ff,#05
	db #ff,#02,#ff,#06,#4c,#03,#04,#04
	db #ff,#a7,#01,#04,#01,#ff,#05,#ff
	db #03,#ff,#00,#03,#0d,#00,#06,#00
	db #00,#04,#ff,#06,#00,#80,#03,#ff
	db #0c,#01,#04,#00,#05,#ff,#14,#02
	db #18,#28,#04,#18,#02,#ff,#10,#1e
	db #03,#18,#1e,#03,#18,#1e,#03,#18
	db #1e,#03,#10,#8f,#01,#08,#01,#ff
	db #03,#ff,#0c,#01,#00,#00,#05,#ff
	db #02,#ff,#04,#1e,#03,#58,#8f,#01
	db #08,#01,#ff,#04,#ff,#03,#ff,#0c
	db #01,#49,#00,#02,#ff,#ff,#1e,#03
	db #58,#8f,#01,#08,#01,#ff,#ff,#00
	db #00,#00,#00,#00,#00,#00,#c1,#6b
	db #6a,#c1,#6b,#6a,#00,#00,#00,#00
	db #c1,#6a,#00,#00,#40,#85,#0f,#80
	db #00,#00,#00,#00,#00,#00,#00,#00

.game_name
	db "Agent XII",0
.game_year
	db "1987",0
.game_publisher
	db "Mastertronic",0
.music_author
	db "Timothy Follin",0
.music_comment
	db "",0

	read "music_end_v1_0.asm"
